package com;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import com.spring.zhouyu.service.AppConfig;
import com.spring.zhouyu.service.UserService;

/**
 * @Description todo
 * @Author yubao
 * @Date 2021/11/14 12:13
 **/
public class Test {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(AppConfig.class);
        UserService userService = applicationContext.getBean("userService", UserService.class);
        userService.test();
    }
}
